package com.misboot.document.client;

import com.misboot.document.client.fallbackFactory.FormClientFallbackFactory;
import com.misboot.document.config.FeignConfig;
import com.misboot.document.constants.FeignClientName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 调用misboot-system相关接口
 * 本地开发时可以指定 ip+网关端口进行访问  在configuration中配置 url = "http://192.168.1.104:9774/document"
 *
 * @Author 湖南佐佑时代科技有限公司
 * @Version 5.4.21
 * @Email service@zuoyo.com
 * @Date 2022-06-16 13:31:39
 */
@FeignClient(name = FeignClientName.FORM_SERVER_NAME, configuration = FeignConfig.class,fallbackFactory = FormClientFallbackFactory.class)
public interface FormClient {

    @ResponseBody
    @RequestMapping(value = "/formDatabase/saveOfDocumentFowForm", method = RequestMethod.POST)
    public Object saveOfDocumentFowForm(@RequestParam("url") String url, @RequestParam("formUuid")String formUuid, @RequestParam("beforeTemplateUuid")String beforeTemplateUuid, @RequestParam("nowTemplateUuid")String nowTemplateUuid, @RequestParam("status")String status);

}
